﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jarvis.Sensors
{
    class PrintLogger : Logger
    {
        // private UInt32 count = 0;

        public override void SensorsUpdated(object obj, EventArgs eventArgs)
        {
            /* Console.WriteLine("-{0}-", count);

            SensorNotifier notifier = SensorNotifier.Instance;

            foreach (SensorUpdate update in notifier.updates)
            {
                List<string> l = update.sensorValue as List<string>;

                Console.Write("{0} = ", update.sensor.name);

                if (l != null)
                {
                    foreach (var o in l)
                        Console.Write(o + ", ");

                    Console.Write(".");
                }
                else
                {
                    Console.Write(update.sensorValue);
                }

                Console.WriteLine("");
            }

            Console.WriteLine("-{0}-", count);

            count = count + 1; */
        }
    }
}
